home *** CD-ROM | disk | FTP | other *** search
/ Total Web Page (Professional Suite) / Total Web Page 99.iso / Javascripts / navigation / href_.txt < prev    next >
Text File  |  1998-10-30  |  1KB  |  39 lines

  1.  
  2. <SCRIPT LANGUAGE="JavaScript">
  3. <!--start stealth
  4. //---------------------------------
  5. //GoTo SCRIPT BY ALEX KEENE 1997
  6. //INFO@FIRSTSOUND.COM
  7. //---------------------------------
  8.  function GoToURL(j) {
  9.   window.status=('Connecting....')
  10.   
  11. var URLis;
  12.  URLis = document.URLframe.Dest.value
  13.   
  14.    if (URLis == "" || URLis.length <= 8)
  15.        { 
  16.      j.value = "Try Again"
  17.       alert('\nOops!\n\nYou must enter a valid URL');
  18.          window.status=('Missing data or Invalid. Try again?.')
  19.        } 
  20.     else
  21.     {
  22.  j.value = "Connecting to: http:\\" + URLis   
  23.  var location=("http://" + URLis);
  24.          this.location.href = location;
  25. window.status=('Connecting to ' + URLis + '  Please wait........');
  26.     }
  27.     }
  28. //-->
  29. </SCRIPT>
  30. <FORM NAME="URLframe">
  31. <TABLE BORDER="0" ALIGN="CENTER">
  32. <TR>
  33. <TD VALIGN="MIDDLE" ALIGN="CENTER"><BR><FONT
  34. SIZE="3" COLOR="#FF0000"
  35. FACE="VERANDA,ARIAL,HELVETICA"><B>http://</B></FONT><INPUT
  36. TYPE="TEXT" NAME="Dest" SIZE="55" MAXLENGTH="50"></TD></TR>
  37. <TR>
  38. <TD ALIGN="CENTER">
  39. <P><INPUT TYPE="BUTTON" VALUE="    Go to..   " ONCLICK="GoToURL(this)" WIDTH="50"></P></TD></TR></TABLE></FORM><P>